import {quickPost} from "../util/common.ts";

const UPLOAD_MINE_RECORD_API = "/api/uploadMineRecord"

const uploadMineRecordRequest = async (useTime: number) => {
    const formData = new FormData();
    formData.append("useTime", useTime.toString());
    return await quickPost(UPLOAD_MINE_RECORD_API, formData);
}

const GET_BEST_RECORD_API = "/api/getMineRecordList"

const getMineRecordListRequest = async () => {
    return await quickPost(GET_BEST_RECORD_API);
}

export {
    uploadMineRecordRequest,
    getMineRecordListRequest
}
